<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2021/12/1
  Time: 17:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="/static/js/jquery-3.6.0.js"></script>
    <script>
        function a() {
            alert(111);
            $.post({
                url:"${pageContext.request.contextPath}/a1",
                data:{"name1":$("#text").val()},
                success: function (res,status){
                    alert(res);
                    alert(status);
                }
            })
        }
    </script>
</head>
<body>
<div><input type="text" name="name1" id="text" onblur="a()"></div>

</body>
</html>
